#include <stdio.h>
/**
 * 使用指针便利二维数组
 */
int main() {
    int a[3][4] = {0,1,2,3,4,5,6,7,8,9,10,11};
    int (*p)[4];
    int i,j;
    p = a;

    for (i=0;i<3;i++){
        for (j=0; j < 4; j++) {
            printf("%2d ",*(*(p+i)+j));
        }
        printf("\n");
    }
    return 0;
}
/**
运行结果如下：
0  1  2  3 
4  5  6  7 
8  9 10 11
 */